package com.tongna;

import com.tongna.ucrawler.DemoCrawler;
import com.tongna.ucrawler.DemoPageVisitor;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
    
        DemoCrawler crawler=new DemoCrawler();
        //http://106.12.13.174:8080/ucms/
        //https://www.oschina.net/
        crawler.addSeed("https://www.oschina.net/");
        crawler.setPageVisitor(new DemoPageVisitor());
        crawler.addSuffix("exe");
        crawler.addSuffix("dmg");
        crawler.addSuffix("bz2");
        crawler.addSuffix("mp4");
        crawler.addSuffix("apk");
        crawler.setMaxDepth(3);

        crawler.start();
    }
}
